package com.bank.controller;

import com.bank.service.OrderService;
import com.bank.service.pojo.Order;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Resource
    public OrderService orderService;

    @RequestMapping(value = "/selectOrder",method = {RequestMethod.GET,RequestMethod.POST})
    public Order selectOrder(Integer id) {
        return orderService.selectOrderById(id);
    }
}
